﻿<Controls:MetroWindow x:Class="RadioPlayer.DialogWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:local="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro" Height="209" Width="365" Loaded="MetroWindow_Loaded">
    <i:Interaction.Behaviors>
        <local:BorderlessWindowBehavior ResizeWithGrip="False"/>
    </i:Interaction.Behaviors>
    <Window.Resources>
        <ResourceDictionary x:Key="MainDict">
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Icons/MergedResources.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>


    </Window.Resources>

    <Controls:MetroContentControl Padding="10">
        <StackPanel Orientation="Vertical">
        <TextBlock Text="add channel" FontSize="18" />
    <Grid Height="142">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="164" />
                <ColumnDefinition Width="159*" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="2" Grid.Column="1" Text="Link not checked." x:Name="LinkStatusLabel" Margin="5,0,-10,10" VerticalAlignment="Bottom"/>
            <TextBlock VerticalAlignment="Bottom" Grid.RowSpan="2" Grid.Column="1" Text="HINT: The URL should target an m3u or similar playlist file. " TextWrapping="Wrap" Margin="5,0,-10,0" />
            <TextBlock Text="Stream Name" Grid.Row="0"  VerticalAlignment="Bottom"/>
            <TextBox Grid.Row="1" Height="23" HorizontalAlignment="Left"  Name="tbStreamName" VerticalAlignment="Top" Width="142" />
            <TextBlock Text="Stream URL" Grid.Row="2" VerticalAlignment="Bottom" />
            <TextBox Grid.Row="3" Height="23" HorizontalAlignment="Left" Name="tbStreamUrl" VerticalAlignment="Top" Width="141" TextChanged="tbStreamUrl_TextChanged" />
            <Button Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Name="TestButton" Content="Test Url" Width="65" Click="TestButton_Click" />
        <Button Name="SaveButton" Content="SAVE" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Right" Width="50" Click="SaveButton_Click"/>
            
        </Grid>
        </StackPanel>
    </Controls:MetroContentControl>
</Controls:MetroWindow>
